﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YiSha.Framework
{
    public class OperatorInfo
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 用户状态
        /// </summary>
        public int? UserStatus { get; set; }
        /// <summary>
        /// 是否在线
        /// </summary>
        public int? IsOnline { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 后端token
        /// </summary>
        public string WebToken { get; set; }
        /// <summary>
        /// api
        /// </summary>
        public string ApiToken { get; set; }
        /// <summary>
        /// 是否管理员
        /// </summary>
        public int? IsSystem { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string Portrait { get; set; }
        /// <summary>
        /// 部门编号
        /// </summary>
        public string DepartmentId { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        [NotMapped]
        public string DepartmentName { get; set; }

        /// <summary>
        /// 岗位Id
        /// </summary>
        [NotMapped]
        public string PositionIds { get; set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        [NotMapped]
        public string RoleIds { get; set; }
    }
    public class RoleInfo
    {
        public string RoleId { get; set; }
    }

}
